
<!--菜单 start-->
<?php $this->load->view('defaults/common/left');?>
<!--菜单 end-->
<div id="content">
  <div class="page-header">
    <div class="container-fluid">
      <h1><?=lang('menu_cpgl')?></h1>
      <?=$this->breadcrumb->generateHTML();?>
    </div>
  </div>
  <div class="container-fluid">
    <div class="panel panel-default">
      <div class="panel-heading">
        <h3 class="panel-title"><i class="fa fa-list"></i><?=lang('menu_pplb')?></h3>
      </div>
      <div class="panel-body">
        <div class="table-responsive">
            <table class="table table-bordered table-hover oms-table">
              <thead>
                <tr>
                  <td class="text-left">品牌ID</td>
                  <td class="text-left">品牌名称</td>
                  <td class="text-left">中文名称</td>
                  <td class="text-right">品牌商账号</td>
                  <td class="text-right" style="width:10%;">操作</td>
                </tr>
              </thead>
              <tbody>
                <?php if($dataList): foreach ($dataList as $key=>$rs):?>
                <tr>
                    <td class="text-left"><?=$rs['id']?></td>
                    <td class="text-left"><?=$rs['brand_name']?></td>
                    <td class="text-left"><?=$rs['brand_name_sc']?></td>
                    <td class="text-right"><?=$rs['merchant_account']?></td>
                    <td class="text-right">
                        <a class="btn btn-primary btn-sm" href="<?=blang_url('brands/brand/edit/'.$rs['id'].'/'.$page)?>" title="修改"><i class="fa fa-edit"></i></a>
                        <a class="btn btn-danger btn-sm" href="<?=blang_url('brands/brand/del/'.$rs['id'].'/'.$page)?>" onclick="return confirm('确定要删除吗?')" title="删除"><i class="fa fa-trash-o"></i></a>
                    </td>
                </tr>
                <?php endforeach; else:?>
                    <tr><th colspan="5" class="emptyNumber"><?=lang('public_mygdsj')?>....</th></tr>
                <?php endif; ?>
            </tbody>
            </table>
            <?php if($show_pages):?>
            <div class="page">
                <?=$show_pages?>
            </div>
            <?php endif;?>
          </div>
      </div>
    </div>
    </div>
</div>